<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>登录页面</title>
		<link rel="stylesheet" href="../css/index.css" />
		<script type="text/javascript" src="../js/Size.js" ></script>
		<script type="text/javascript" src="../js/jquery-1.7.2.min.js" ></script>
	</head>
	<body class="box">
		<div class="center">
			<div class="left">
				<img src="../images/11.jpg" />
			</div>
			<div class="right">
				<div class="content">
					<p>人事管理系统</p>
					<p><label>用户名：</label><input type="text" id="userName"></p>
					<p><label>密码：</label><input type="password" id="passWord"></p>
					<p><button onclick="login()">登录</button><button>重置</button></p>
				</div>
			</div>
		</div>
	</body>
</html>
<script type="application/javascript">
	function login(){
		if($("#userName").val() != '' && $("#passWord").val() != ''){
			$.ajax({
				type: "POST",
				url: url,
				dataType: "json",
				data: {
					"aoData": "[" + checkedList.toString() + "]"
				},
				success: function (data) {
					var resultStatus = data['status'];
					$("#delayTime").modal('hide');
					if ("success" == resultStatus) {
						Lobibox.notify('success', {
							size: 'mini',
							title: '延时',
							msg: "延时成功"
						});
						$("#delayTime").find('input').val('')

					} else {
						$("#error table tbody tr").remove();
						var result = data['result'];
						for (var index in result) {
							var re = result[index];
							var $tr;
							if (delete_data) {
								$tr = "<tr><td class='list_border' style='width: 20%'>" + re[deleteData] + "</td><td class='list_border' style='width: 20%'>" + re[delete_data] + "</td><td class='list_border' title='' style='color: red;width: 60%'>" + re['sendStatus'] + "</td></tr>"
							} else {
								$tr = "<tr><td class='list_border' style='width: 30%'>" + re[deleteData] + "</td><td class='list_border' title='' style='color: red;width: 70%'>" + re['sendStatus'] + "</td></tr>"
							}
							$("#error table tbody").append($tr);
						}
						$('#error').modal('show');
					}
					$("input[name='allChecked']").attr("checked", false)
					reportTable.fnDraw(false) //静态刷新，不跳转
				},
				error: function (data) {
				}
			});
			window.location.href='details.html'
		}
	}
</script>